# 列表(list)

numbers=[1,2,3,4]
print(numbers[0])
print(numbers[1])
print(numbers[2])
print(numbers[3])

numbers[2]=99
print(numbers[2])

# 元组(tuple)

numbers=(1,2,3,4,5)
print(numbers[0])  #1

#范围(range)
zero_to_nine=range(10)  #0-9
one_to_ten=range(1,11)  #1-10
one_three_five=range(1,6,2)  #1,3,5

print(zero_to_nine[0])
print(one_to_ten[1])

#映射类型
city={"name":"南京","population":"80000000"}
print(city["name"])  #南京
print(city["population"])

city["name"]="上海"
city["population"]=20000000
print(city["name"])
print(city["population"])





